<?php $types = $this->requestAction('/Pages/getTypeParent');
    if(!empty($types)){
?>
<div class="MenuCaption_Left">
    <a target="_self" href="#" id="ctl00_cphMain_VerticlePanel_mncap">Danh mục sản phẩm</a>
</div>
<div class="RadPanelBar RadPanelBar_Default">
	<ul class="rpRootGroup">
            <?php            foreach ($types as $kTypes=>$vTypes){ ?>
		<li class="rpItem rpFirst">
                    <a target="_self" class="rpLink  menu74 rpExpandable" href="<?php echo $this->Html->url("/products/type_product/$kTypes");?>">
                        <span class="rpOut rpNavigation">
                            <span class="rpExpandHandle"></span>
                            <span class="rpText"><?php echo $vTypes ?></span>
                                
                        </span>
                    </a>
                    <?php $subTypes = $this->requestAction("/Pages/getType/".$kTypes);
                         if(!empty($subTypes)){?>
                            <div class="rpSlide">
			<ul class="rpGroup rpLevel1 ">
                            <?php
                            foreach($subTypes as $kSub=>$vSub){
                               ?>
                            <li class="rpItem rpFirst">
                                    <a target="_self" class="rpLink" href="<?php echo $this->Html->url("/products/type_product/$kSub");?>">
                                        <span class="rpOut rpNavigation">
                                            <span class="rpExpandHandle"></span>
                                            <span class="rpText"><?php echo $vSub ?></span>
                                                
                                        </span>
                                    </a>
                                </li>
                                <?php
                            } ?>
                            </ul>
		</div>
                            <?php
                        }
                    ?>
           </li>
            <?php } ?>
          
	</ul>

</div>
    <?php } ?>